//package com.yamaikeji.plan.config;
//
//import com.yamaikeji.plan.interceptor.IpInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * 注册拦截器
// */
////@Configuration
//public class WebMvcConfigurer extends WebMvcConfigurerAdapter {
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//
//        registry.addInterceptor(new IpInterceptor())
//                //.addPathPatterns("/app/plan/**","/detail/**")
//                .excludePathPatterns("/api/plan/user/login", "/api/plan/user/sendCode", "/api/plan/task/geTuiPushTask", "/api/plan/task/pushTask");
//
//
//        super.addInterceptors(registry);
//    }
//
//}
